package siga.pacotao;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class imagemArquivo {
   
    public static BufferedImage lerImgDoArq(File file) throws IOException{
        return ImageIO.read(file);
    }

    public static void gravarImgJPG (File file,BufferedImage bufferedImage) throws IOException {
        ImageIO.write(bufferedImage,"jpg",file);
    }
}

